<?php /* Smarty version Smarty-3.1.12, created on 2013-01-05 15:27:38
         compiled from "templates/default/makale.tpl" */ ?>
<?php /*%%SmartyHeaderCode:74509978050b67d083f2d73-96392165%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'cd12c3d5deb0f9fac4ad8ce002e1ce26b5e9a0b3' => 
    array (
      0 => 'templates/default/makale.tpl',
      1 => 1357392122,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '74509978050b67d083f2d73-96392165',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50b67d0842e1a6_32839542',
  'variables' => 
  array (
    'makale_yorum_sayisi' => 0,
    'baslik' => 0,
    'tarih' => 0,
    'image' => 0,
    'mesaj' => 0,
    'tema' => 0,
    'kullanici' => 0,
    'kategori_id' => 0,
    'kategori_title' => 0,
    'okunma' => 0,
    'id' => 0,
    'yorumlar' => 0,
    'yorum_sayisi' => 0,
    'sayfalama' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50b67d0842e1a6_32839542')) {function content_50b67d0842e1a6_32839542($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<script type="text/javascript">
    function post_yorum(){
    $.ajax({
    type:'POST',
    url:'islem.php?yorum=ekle',
    data:$('#yorum').serialize(),
    success:function(cevap){ $("#sonuc_yorum").html(cevap) }
});
}
                
$(document).ready(function(){
                    
                    
$('#bbcode').markItUp(myBbcodeSettings);

$('#emoticons a').click(function() {
emoticon = $(this).attr("title");
$.markItUp( { replaceWith:emoticon } );
});
                    
$(".yorum_yap").hide();
$("#y_ekle").click(function(){
$(".yorum_yap").toggle("slow");
$("#y_ekle").hide("slow");
});
                
});
                
</script>
<!-- Sol-->
<?php echo $_smarty_tpl->getSubTemplate ("menu.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<!-- SaÃ°-->
<div id="sag">
    <div class="orta_title">
        <div class="entry_comment"><strong><?php echo $_smarty_tpl->tpl_vars['makale_yorum_sayisi']->value;?>
</strong></div>
        <div class="entry_title"><strong><?php echo $_smarty_tpl->tpl_vars['baslik']->value;?>
</strong></div>
        <div class="entry_date"><strong><?php echo $_smarty_tpl->tpl_vars['tarih']->value;?>
</strong></div>
    </div>
    <div class="orta_orta">
        <div class="orta_icerik">
            <div class="orta_yazi"><img src="<?php echo $_smarty_tpl->tpl_vars['image']->value;?>
" alt="" /><?php echo $_smarty_tpl->tpl_vars['mesaj']->value;?>
</div>
            <div class="orta_menu">
                <a href="/"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/ico1.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['kullanici']->value;?>
</a>
                <a href="kategoriler.php?id=<?php echo $_smarty_tpl->tpl_vars['kategori_id']->value;?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/ico3.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['kategori_title']->value;?>
</a>
                <a href="#"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/ico5.png" alt="" /><?php echo $_smarty_tpl->tpl_vars['okunma']->value;?>
 Okunma</a>
            </div>
        </div>
    </div>
    <div class="orta_alt"></div>

    <div class="yorum_yap">
        <div class="yorum_title">
            <div class="entry_title"><strong>Yorum Yap</strong></div>
        </div>
        <div class="orta_orta">
            <div class="orta_icerik">
                <div class="orta_yazi">
                    <form id="yorum">
                        <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['id']->value;?>
" name="makale_id" />
                        <?php if ($_SESSION['durum']==''){?>
                            İsim Soyisim:<br /><input type="text" style="width: 560px;" name="isim" /><br />
                            E-mail(paylaşılmayacak):<br /><input type="text" style="width: 560px" name="mail" /><br />
                        <?php }?>
                        Başlık:<br /><input type="text" style="width: 560px;" name="baslik" /><br />
                        Mesaj:<br />
                        <div id="emoticons">
                            <a title=":D"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-happy.png" /></a>
                            <a title=":("><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-unhappy.png" /></a>
                            <a title=":O"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-surprised.png" /></a>
                            <a title=":P"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-tongue.png" /></a>
                            <a title=";)"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-wink.png" /></a>
                            <a title=":)"><img src="<?php echo $_smarty_tpl->tpl_vars['tema']->value;?>
/images/emoticon-smile.png" /></a>
                        </div>
                        <textarea id="bbcode" name="mesaj" style="border: solid 1px #179EE6; height: 200px;" rows="" cols=""></textarea><br />
                        <div id="sonuc_yorum"></div><input onclick="post_yorum();" type="button" />
                    </form>
                </div>
            </div>
        </div>
        <div class="orta_alt"></div>
    </div>
    <a id="y_ekle">Yorum yapmak için buraya tıklayın.</a><br /><br />
    <?php  $_smarty_tpl->tpl_vars['yorum'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['yorum']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['yorumlar']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['yorum']->key => $_smarty_tpl->tpl_vars['yorum']->value){
$_smarty_tpl->tpl_vars['yorum']->_loop = true;
?>
        <div class="yorum_title">
            <div class="entry_title"><strong>' . $yorum_baslik . '</strong></div>
            <div class="entry_date"><strong>' . $yorum_tarih . '</strong></div>
        </div>
        <div class="orta_orta">
            <div class="orta_icerik">
                <div class="orta_yazi">' . BBCode($yorum_mesaj, $tema) . '</div>
                <div class="orta_menu">
                    <a href="uye.php?id=' . $yorum_yazan_id . '"><img src="'.$tema.'/images/ico1.png" alt="" />' . $yorum_yazan_mysql['kullanici'] . '</a>
                </div>
            </div>
        </div>
        <div class="orta_alt"></div>
    <?php } ?>
    <?php if ($_smarty_tpl->tpl_vars['yorum_sayisi']->value>0){?>
        <div class="register_title"><strong>Sayfalar</strong></div>
        <div class="orta_orta"> 
            <div class="orta_yazi">
                <div class="sayfalama"> 
                    <?php echo $_smarty_tpl->tpl_vars['sayfalama']->value;?>

                </div>
            </div>
        </div>
        <div class="orta_alt"></div>
    <?php }?>
</div>

<div class="both"></div>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>

</div>
</body>
</html><?php }} ?>